SlideShare a Scribd company logo
1 of 3
Download to read offline
-        ...................................................................................                                                                         19                 2553

                                                                                                                                               F

                                                                                                                   F                   printf()    scanf()

                    printf() F F
                     F      F          F                                                                                                               F        F
                        F      F printf()
         printf(control string,argument list);
              control string                                                                F   F                   (format code)                                    (control code)
             F F F                                                                         (") F argument list                          F                                     F
                                                                                       F              F       F 1 F F F             F                                           F (,)
                                                                              (format code)                                   F                                      F                  F
     F                                                                                           F                                F       F                         printf()          F
               %              F                                                                     (conversion code)                 F



                                                                                                    F
    %c                                        F                                             F                              1(single character)
    %d , %i                       F                                                     F                               (integer int ) 1
    %e , %E                                       F                                                             (floating point ,float)      e F 2.15e+2                    F 215
    %f                                                        F           F          float                  double
    %g , %G                                                       F        F float
    %h                                    F                               short integer
    %o( )                                                             F     integer
    %x , %X                                                       F         integer                                        (%x                     F       %X                F      )
                                                                                                                                                                                    F
    %s                                                F                      F
    %u                                    F                                                                 (integer           int )       F
    %%                                                    F                                             %
    %p                                F                                       address                                  F        F
-       ...................................................................................                                                                                                                                             19                           2553

                         scanf() F                               F
                          F             F        F                                                       F                                   F F F                                    F           F                             F                        F
F                                                        F                                                                               F
            scanf(control string ,variable list);
            control string                                                                                               F                                    F                                                   F         F
               F                            F                        F                               F                                                F                       F           F                                                      F                   F

            variable list                                                                                                        F                F                                                           F                                      F
             F                                                                                                               F                                    F                                                                 F
        F                                                                    F                               F                                F                                                       F (,)                                                                     F
                   F              F F            F     F                                                                                                                  F                   F                                         &                    F
        F            F   (string) F
            scanf("%d %f %s",&i1,&f1,word);
                F F                F3 F     F                                                                                                                                                                          F                F
          F            F                  i1 , f1 word
            F                   F       F      F         F                                                                                                                                               enter                                                   F
              F           F           F   F scanf()

                                                                                                                                                                                  F
                     %c                                                                      F                                       ( character)
                     %d                                                              F
                     %e                                                                      F                                 ( floating point)
                   %f %lf                                                                                                 float double
                     %g                                      F           F                                           float
                     %h                                                              F                                 short integer
                     %l                                                          F                                      integer             8                                     10                                  16
                     %o                                                              F                                  integer           8 F
                     %u                                                                  F                              unsigned integer                                          10 F
                     %x                                                              F                                  integer           16 F
                     %s                                                                          F                      F        (string)
                                                     F                                                           F                   F                    F           F                                                FF
-      ...................................................................................               19   2553


                                                                                                 F
F                                 F                                          printf()                F   F

                     1

    #include <stdio.h>
    main()
    {
    printf( nWelcome. This Programn );
    printf( This is test write C programming );
    printf( by student name suwitn );
    printf( thank you );
    }




                      2

        #include <stdio.h>
        main()
        {
               int a,b,c;
               int total = 0;
               a = 10;
               b = 20;
               c = 15;
               printf( This is a+b+c = %d n ,a+b+c);
               printf( End );
        }

More Related Content

What's hot

06โมเมนตัมและการดล
06โมเมนตัมและการดล06โมเมนตัมและการดล
06โมเมนตัมและการดลDoc Edu
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุนDoc Edu
 
Personality test
Personality testPersonality test
Personality testpooyu
 
13 แสง
13 แสง13 แสง
13 แสงtopofzeed
 
20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์Doc Edu
 
11คลื่นกล
11คลื่นกล11คลื่นกล
11คลื่นกลDoc Edu
 
12เสียง
12เสียง12เสียง
12เสียงDoc Edu
 
05งานและพลังงาน
05งานและพลังงาน05งานและพลังงาน
05งานและพลังงานDoc Edu
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-ElseNattapon
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลงmuang82
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อนDoc Edu
 
Chemical management procedure [th]
Chemical management procedure [th]Chemical management procedure [th]
Chemical management procedure [th]Adisorn Tanprasert
 
09ของไหล
09ของไหล09ของไหล
09ของไหลDoc Edu
 
Himayah_Icecream
Himayah_IcecreamHimayah_Icecream
Himayah_IcecreamAnis Toleb
 
17ไฟฟ้าและแม่เหล็ก2
17ไฟฟ้าและแม่เหล็ก217ไฟฟ้าและแม่เหล็ก2
17ไฟฟ้าและแม่เหล็ก2Doc Edu
 

What's hot (15)

06โมเมนตัมและการดล
06โมเมนตัมและการดล06โมเมนตัมและการดล
06โมเมนตัมและการดล
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
 
Personality test
Personality testPersonality test
Personality test
 
13 แสง
13 แสง13 แสง
13 แสง
 
20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์
 
11คลื่นกล
11คลื่นกล11คลื่นกล
11คลื่นกล
 
12เสียง
12เสียง12เสียง
12เสียง
 
05งานและพลังงาน
05งานและพลังงาน05งานและพลังงาน
05งานและพลังงาน
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อน
 
Chemical management procedure [th]
Chemical management procedure [th]Chemical management procedure [th]
Chemical management procedure [th]
 
09ของไหล
09ของไหล09ของไหล
09ของไหล
 
Himayah_Icecream
Himayah_IcecreamHimayah_Icecream
Himayah_Icecream
 
17ไฟฟ้าและแม่เหล็ก2
17ไฟฟ้าและแม่เหล็ก217ไฟฟ้าและแม่เหล็ก2
17ไฟฟ้าและแม่เหล็ก2
 

Similar to ใบความรู้เรื่องคำสั่ง Printf scanf

บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]Nattapon
 
Microsoft word เกมบิงโกสัตว์
Microsoft word   เกมบิงโกสัตว์Microsoft word   เกมบิงโกสัตว์
Microsoft word เกมบิงโกสัตว์Thanyamon Chat.
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุนtopofzeed
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำkrusarawut
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Introkrusarawut
 
20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์topofzeed
 
นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)Thanyamon Chat.
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นwanwilai
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยาThanyamon Chat.
 
industrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPindustrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPNstdaAcademy Nstda
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanfธงชัย พาศรี
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตThanyamon Chat.
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน LoopNattapon
 
รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ Panuwat Noonkong
 
Ch11 International Finance
Ch11 International FinanceCh11 International Finance
Ch11 International Financemaovkh
 
3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่topofzeed
 
03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่Doc Edu
 

Similar to ใบความรู้เรื่องคำสั่ง Printf scanf (20)

บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
 
Microsoft word เกมบิงโกสัตว์
Microsoft word   เกมบิงโกสัตว์Microsoft word   เกมบิงโกสัตว์
Microsoft word เกมบิงโกสัตว์
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
 
20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์
 
นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยา
 
industrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPindustrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAP
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanf
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
 
Brief create list-km090354
Brief create list-km090354Brief create list-km090354
Brief create list-km090354
 
Index with Word 2007
Index with Word 2007Index with Word 2007
Index with Word 2007
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
 
รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ
 
Ch11 International Finance
Ch11 International FinanceCh11 International Finance
Ch11 International Finance
 
Pdf114
Pdf114Pdf114
Pdf114
 
3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่
 
03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่
 

More from ธงชัย พาศรี

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมธงชัย พาศรี
 
การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)ธงชัย พาศรี
 
การเขียนผังงานแบบทำซ้ำ (080753)
การเขียนผังงานแบบทำซ้ำ  (080753)การเขียนผังงานแบบทำซ้ำ  (080753)
การเขียนผังงานแบบทำซ้ำ (080753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)ธงชัย พาศรี
 

More from ธงชัย พาศรี (10)

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรม
 
การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)
 
การเขียนผังงานแบบทำซ้ำ (080753)
การเขียนผังงานแบบทำซ้ำ  (080753)การเขียนผังงานแบบทำซ้ำ  (080753)
การเขียนผังงานแบบทำซ้ำ (080753)
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)
 
การเขียนผังงาน (290653)
การเขียนผังงาน (290653)การเขียนผังงาน (290653)
การเขียนผังงาน (290653)
 
การเขียนผังงาน (280653)
การเขียนผังงาน (280653)การเขียนผังงาน (280653)
การเขียนผังงาน (280653)
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)
 
การเขียนผังงาน (290653)
การเขียนผังงาน (290653)การเขียนผังงาน (290653)
การเขียนผังงาน (290653)
 

Recently uploaded

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 

ใบความรู้เรื่องคำสั่ง Printf scanf

  • 1. - ................................................................................... 19 2553 F F printf() scanf() printf() F F F F F F F F F printf() printf(control string,argument list); control string F F (format code) (control code) F F F (") F argument list F F F F F 1 F F F F F (,) (format code) F F F F F F F printf() F % F (conversion code) F F %c F F 1(single character) %d , %i F F (integer int ) 1 %e , %E F (floating point ,float) e F 2.15e+2 F 215 %f F F float double %g , %G F F float %h F short integer %o( ) F integer %x , %X F integer (%x F %X F ) F %s F F %u F (integer int ) F %% F % %p F address F F
  • 2. - ................................................................................... 19 2553 scanf() F F F F F F F F F F F F F F F F scanf(control string ,variable list); control string F F F F F F F F F F F F F variable list F F F F F F F F F F F F F (,) F F F F F F F F & F F F (string) F scanf("%d %f %s",&i1,&f1,word); F F F3 F F F F F F i1 , f1 word F F F F F enter F F F F F scanf() F %c F ( character) %d F %e F ( floating point) %f %lf float double %g F F float %h F short integer %l F integer 8 10 16 %o F integer 8 F %u F unsigned integer 10 F %x F integer 16 F %s F F (string) F F F F F FF
  • 3. - ................................................................................... 19 2553 F F F printf() F F 1 #include <stdio.h> main() { printf( nWelcome. This Programn ); printf( This is test write C programming ); printf( by student name suwitn ); printf( thank you ); } 2 #include <stdio.h> main() { int a,b,c; int total = 0; a = 10; b = 20; c = 15; printf( This is a+b+c = %d n ,a+b+c); printf( End ); }